package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName train_info
 */
@TableName(value ="train_info")
public class TrainInfo implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String trainingid;

    /**
     * 
     */
    private Object totalscore;

    /**
     * 
     */
    private Object score;

    /**
     * 
     */
    private String starttime;

    /**
     * 
     */
    private String endtime;

    /**
     * 
     */
    private String evaluation;

    /**
     * 
     */
    private String taskgroups;

    /**
     * 
     */
    private String userid;

    /**
     * 
     */
    private Object stepnum;

    /**
     * 
     */
    private Object stepid;

    /**
     * 
     */
    private String accesskey;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getTrainingid() {
        return trainingid;
    }

    /**
     * 
     */
    public void setTrainingid(String trainingid) {
        this.trainingid = trainingid;
    }

    /**
     * 
     */
    public Object getTotalscore() {
        return totalscore;
    }

    /**
     * 
     */
    public void setTotalscore(Object totalscore) {
        this.totalscore = totalscore;
    }

    /**
     * 
     */
    public Object getScore() {
        return score;
    }

    /**
     * 
     */
    public void setScore(Object score) {
        this.score = score;
    }

    /**
     * 
     */
    public String getStarttime() {
        return starttime;
    }

    /**
     * 
     */
    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    /**
     * 
     */
    public String getEndtime() {
        return endtime;
    }

    /**
     * 
     */
    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    /**
     * 
     */
    public String getEvaluation() {
        return evaluation;
    }

    /**
     * 
     */
    public void setEvaluation(String evaluation) {
        this.evaluation = evaluation;
    }

    /**
     * 
     */
    public String getTaskgroups() {
        return taskgroups;
    }

    /**
     * 
     */
    public void setTaskgroups(String taskgroups) {
        this.taskgroups = taskgroups;
    }

    /**
     * 
     */
    public String getUserid() {
        return userid;
    }

    /**
     * 
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }

    /**
     * 
     */
    public Object getStepnum() {
        return stepnum;
    }

    /**
     * 
     */
    public void setStepnum(Object stepnum) {
        this.stepnum = stepnum;
    }

    /**
     * 
     */
    public Object getStepid() {
        return stepid;
    }

    /**
     * 
     */
    public void setStepid(Object stepid) {
        this.stepid = stepid;
    }

    /**
     * 
     */
    public String getAccesskey() {
        return accesskey;
    }

    /**
     * 
     */
    public void setAccesskey(String accesskey) {
        this.accesskey = accesskey;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TrainInfo other = (TrainInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTrainingid() == null ? other.getTrainingid() == null : this.getTrainingid().equals(other.getTrainingid()))
            && (this.getTotalscore() == null ? other.getTotalscore() == null : this.getTotalscore().equals(other.getTotalscore()))
            && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(other.getScore()))
            && (this.getStarttime() == null ? other.getStarttime() == null : this.getStarttime().equals(other.getStarttime()))
            && (this.getEndtime() == null ? other.getEndtime() == null : this.getEndtime().equals(other.getEndtime()))
            && (this.getEvaluation() == null ? other.getEvaluation() == null : this.getEvaluation().equals(other.getEvaluation()))
            && (this.getTaskgroups() == null ? other.getTaskgroups() == null : this.getTaskgroups().equals(other.getTaskgroups()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getStepnum() == null ? other.getStepnum() == null : this.getStepnum().equals(other.getStepnum()))
            && (this.getStepid() == null ? other.getStepid() == null : this.getStepid().equals(other.getStepid()))
            && (this.getAccesskey() == null ? other.getAccesskey() == null : this.getAccesskey().equals(other.getAccesskey()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTrainingid() == null) ? 0 : getTrainingid().hashCode());
        result = prime * result + ((getTotalscore() == null) ? 0 : getTotalscore().hashCode());
        result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
        result = prime * result + ((getStarttime() == null) ? 0 : getStarttime().hashCode());
        result = prime * result + ((getEndtime() == null) ? 0 : getEndtime().hashCode());
        result = prime * result + ((getEvaluation() == null) ? 0 : getEvaluation().hashCode());
        result = prime * result + ((getTaskgroups() == null) ? 0 : getTaskgroups().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getStepnum() == null) ? 0 : getStepnum().hashCode());
        result = prime * result + ((getStepid() == null) ? 0 : getStepid().hashCode());
        result = prime * result + ((getAccesskey() == null) ? 0 : getAccesskey().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", trainingid=").append(trainingid);
        sb.append(", totalscore=").append(totalscore);
        sb.append(", score=").append(score);
        sb.append(", starttime=").append(starttime);
        sb.append(", endtime=").append(endtime);
        sb.append(", evaluation=").append(evaluation);
        sb.append(", taskgroups=").append(taskgroups);
        sb.append(", userid=").append(userid);
        sb.append(", stepnum=").append(stepnum);
        sb.append(", stepid=").append(stepid);
        sb.append(", accesskey=").append(accesskey);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}